<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>
<body>
<div id="test">
    <input type="button" value="java" onsubmit="alert();"/>
</div>
<script src="js/index.js"></script>
</body>
</html>